import http from "./http"
// 登录
export function login(username,password) {
    let user = new URLSearchParams();
    user.append('username',username);
    user.append('password',password);
    user.append('rememberMe',true)
    return http.post('/api/pcUser/login',user)
}
//个人信息
export function personalLnformation() {
    return http.get( '/api/pcUser/login-user/info')
}
//退出登录
export  function exit1() {
    return http.get( '/api/pcUser/logout')
}
//验证码
export  function authCode(mobile) {
    return http.get( `/pcUser/login/send/code/${mobile}`)
}